<template>
  <div id="app" :style="{'overflow-y': $route.path != '/login' || $route.path != '/home' ? 'auto' : 'hidden', '--theme': theme}">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  computed: {
    // 主题色
    theme() {
      return this.$store.state.settings.theme
    }
  },
  created() {
    this.$store.dispatch('settings/systemSettings')
  }
}
</script>
<style lang="scss">
.el-avatar {
  background-color: var(--theme) !important;
}
</style>
